<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			//判断是否有登录信息
			if(!uni.getStorageSync('token')){
				uni.redirectTo({
					url: 'pages/login/login'
				});
			}
		},
		onShow: function() {
			console.log('App Show')
			//判断是否有登录信息
			if(!uni.getStorageSync('token')){
				uni.redirectTo({
					url: 'pages/login/login'
				});
			}
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import '@/styles/iconfont.scss';
	page {
		background: #f6f6f6;
		color: #333333;
	}
	view {
		box-sizing: border-box;
	}
	image {
		display: block;
	}
	._em{font-size: 24rpx;}
</style>
